package com.dsg.dao.apply;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dsg.entity.apply.DsgApplyBill;
import com.dsg.entity.dto.SupApproveDto;
import com.dsg.util.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 业务申请单 Mapper 接口
 * </p>
 *
 * @author system
 * @since 2020-07-10
 */
public interface DsgApplyBillMapper extends BaseDao<DsgApplyBill> {
    Page<DsgApplyBill> selectSalesManagerList(Page<DsgApplyBill> page, DsgApplyBill en);
    Page<DsgApplyBill> selectSalesWaitingList(Page<DsgApplyBill> page, DsgApplyBill en);
    DsgApplyBill getBillByCard(String cardId);
    DsgApplyBill getMainBillByCusNo(String cusNo, String entCode);
    Page<SupApproveDto> selectSupApproveList(Page<SupApproveDto> page, Integer appType, String approveStatus, String entCode, String userId);
    List<DsgApplyBill> selectApproveList(@Param(value = "userId") String userId);
    Page<DsgApplyBill> csWaitingList(Page<DsgApplyBill> page, DsgApplyBill en);
    String carFileComplete(String carOid);
    String otherFileComplete(String billOid);
    Page<DsgApplyBill> selectUncheckedBill(Page<DsgApplyBill> page, DsgApplyBill en, boolean isChecked);
}
